/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight;

import com.yanlight.support.PropertiesHolder;

import java.nio.charset.Charset;

/**
 * @author haolw
 * @time 2017/03/09
 */
public class Constants {
    public static Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
    public static final String DEFAULT_CHARSET_NAME = DEFAULT_CHARSET.name();
    public static final int DEFAULT_CONNECT_TIMEOUT = 120;
    public static final int DEFAULT_READ_TIMEOUT = 120;
    public static final int DEFAULT_WRITE_TIMEOUT = 180;
    public static final String WX_OPENID = "wx_provider_openid";
    public static final String ALIPAY_USER_ID = "alipay_provider_user_id";
    public static final String HOST = PropertiesHolder.get("host");
    public static final String DEV_PAYMENT_URL = PropertiesHolder.get("dev_payment_url");
    public static final String TOKEN_NAME = "token";
    public static final String DEV_TOKEN_CACHE_PREFIX = "dev:token:";
    public static final String SUCCESS = "success";
    public static final String FAIL = "fail";
    public static final String WXPAY_VIEW = "wxPay";
    public static final String ALIPAY_VIEW = "aliPay";
    public static final String TEST_PAY = "pay_dev";
    public static final String ROTATE_WHEEL = "rotate_wheel";

    public static final String NO_WAY_PAY_VIEW = "noWayPay";
    public static final String NO_SERVICE_VIEW = "noService";
    public static final String ACTIVE_VIEW = "ifream_actives";

    public static final String NO_BIND_VIEW = "noBind";

    public static final String NO_SERVICE_REPLY = "no service";
    public static final String APP_AUTH_SUCCESS_REPLY = "授权成功";
    public static final String SLASH = "/";
    public static final String POINT = ".";
    public static final String DOLLAR = "$";
    public static final String AT = "@";
    public static final String INITIALIZE_PASSWORD = "000000";

    public final static String format0 = "yyyyMMdd";
    public final static String format1 = "yyyy-MM-dd HH:mm:ss";
    public final static String format2 = "yyyyMMddHHmmss";
    public final static String format3 = "yyyyMMddHHmmssSSS";
    public final static String format4 = "yyyy.MM.dd";
    public final static String format5 = "yyyy-MM-dd";
    public final static String format6 = "yyyy-MM-dd 00:00:00";
    public final static String format7 = "yyyy-MM-dd 23:59:59";
    public final static String format8 = "yyyyMMddHHmmss";

    //每个手机号/ip 发送的每个类型的消息上限为5
    public final static Integer messageLimit = 5;

}
